#ifndef MAINIMAGEPANEL_H
#define MAINIMAGEPANEL_H

#include <QWidget>
#include "HalconImage/HalconWidget.h"
class QGridLayout;
class MainImagePanel : public QWidget
{
    Q_OBJECT
public:
    explicit MainImagePanel(QWidget *parent = nullptr);



public slots:
    void onDisplayImage(const QString& image);
    void onChangeDisplayMode(int mode);

private slots:
    void onDisplaySingleResult();
    void onDisplayMultipleResults();
    void onLoadImageFolder(const QStringList& images);
    void onDisplayTargetImage(int cursor);

private:
    int displayMode;
    QGridLayout* layout;

    void initComponent();

    void singleImageMode();
    void multipleImageMode();
    QHash<int,HalconWidget*> halconImages;

    HalconWidget* imageWidget;

    QHash<int,HalconCpp::HObject> resultImages;



};

#endif // MAINIMAGEPANEL_H
